package org.dftproject.genesis.ui.pages.pedigree.tree;

import org.eclipse.draw2d.Figure;
import org.eclipse.draw2d.Graphics;

public class AlphaFigure extends Figure {
	
	private int alpha = 255;

	public int getAlpha() {
		return alpha;
	}

	public void setAlpha(int alpha) {
		this.alpha = alpha;
	}
	
	@Override
	public void paint(Graphics graphics) {
		graphics.pushState();
		graphics.setAlpha(alpha);
		super.paint(graphics);
		graphics.popState();
	}

}
